package com.baseweb.webadmin.core.model.bvo;

import com.baseweb.webadmin.core.model.pojo.ByChannel;
import com.baseweb.webadmin.core.model.pojo.ByUserBizAuth;
import com.baseweb.webadmin.core.model.pojo.ByUserBizProduct;
import com.baseweb.webadmin.core.model.pojo.User;

import java.math.BigDecimal;
import java.util.List;

public class UserInfoDetailBvo {

    private Integer id;
    private String cnName;
    private String avatar;
    private String descn;
    private String province;
    private String city;
    private String area;
    private String remoteFee;
    private List<ByUserBizProduct> goods;
    private List<ByUserBizAuth> authList;
    private Integer bizWorkType;
    private ByChannel bizWork;
    private Integer bizViewCount;
    private Integer bizCommentCount;
    private String bizStar;
    private String bizCover;
    private BigDecimal bizPrice;
    private Integer userType;

    public static UserInfoDetailBvo copyFrom(User user, List<ByUserBizProduct> products, List<ByUserBizAuth> authList, ByChannel byChannel) {
        UserInfoDetailBvo bvo = new UserInfoDetailBvo();
        bvo.setId(user.getId());
        bvo.setCnName(user.getCnName());
        bvo.setAvatar(user.getAvatar());
        bvo.setDescn(user.getDescn());
        bvo.setProvince(user.getProvince());
        bvo.setCity(user.getCity());
        bvo.setArea(user.getArea());
        bvo.setRemoteFee(user.getRemoteFee());
        bvo.setBizViewCount(user.getBizViewCount());
        bvo.setBizWorkType(user.getBizWorkType());
        bvo.setBizCommentCount(user.getBizCommentCount());
        bvo.setBizStar(user.getBizStar());
        bvo.setBizCover(user.getBizCover());
        bvo.setBizWork(byChannel);

        bvo.setGoods(products);
        bvo.setAuthList(authList);
        bvo.setBizPrice(user.getBizPrice());
        bvo.setUserType(user.getUserType());
        return bvo;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public BigDecimal getBizPrice() {
        return bizPrice;
    }

    public void setBizPrice(BigDecimal bizPrice) {
        this.bizPrice = bizPrice;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCnName() {
        return cnName;
    }

    public void setCnName(String cnName) {
        this.cnName = cnName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getDescn() {
        return descn;
    }

    public void setDescn(String descn) {
        this.descn = descn;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getRemoteFee() {
        return remoteFee;
    }

    public void setRemoteFee(String remoteFee) {
        this.remoteFee = remoteFee;
    }

    public List<ByUserBizProduct> getGoods() {
        return goods;
    }

    public void setGoods(List<ByUserBizProduct> goods) {
        this.goods = goods;
    }

    public Integer getBizWorkType() {
        return bizWorkType;
    }

    public void setBizWorkType(Integer bizWorkType) {
        this.bizWorkType = bizWorkType;
    }

    public List<ByUserBizAuth> getAuthList() {
        return authList;
    }

    public void setAuthList(List<ByUserBizAuth> authList) {
        this.authList = authList;
    }

    public Integer getBizViewCount() {
        return bizViewCount;
    }

    public void setBizViewCount(Integer bizViewCount) {
        this.bizViewCount = bizViewCount;
    }

    public Integer getBizCommentCount() {
        return bizCommentCount;
    }

    public void setBizCommentCount(Integer bizCommentCount) {
        this.bizCommentCount = bizCommentCount;
    }

    public String getBizStar() {
        return bizStar;
    }

    public void setBizStar(String bizStar) {
        this.bizStar = bizStar;
    }

    public String getBizCover() {
        return bizCover;
    }

    public void setBizCover(String bizCover) {
        this.bizCover = bizCover;
    }

    public ByChannel getBizWork() {
        return bizWork;
    }

    public void setBizWork(ByChannel bizWork) {
        this.bizWork = bizWork;
    }
}
